//
//  NwayTreeCollection.h
//  CollectionTest
//
//  Created by Dusan Vujosevic on 2013-11-03.
//  Copyright (c) 2013 Suavetech. All rights reserved.
//

#ifndef __CollectionTest__NwayTreeCollection__
#define __CollectionTest__NwayTreeCollection__

#include "CollectionBase.h"

struct Tree;

class NwayTreeCollection: public CollectionBase
{
public:
	NwayTreeCollection(size_t elemCountHint): CollectionBase(elemCountHint) {}
	virtual ~NwayTreeCollection();
	
	virtual const char* name() const { return "NwayTree"; }
	
	virtual bool init();

	virtual void reset();
	
	virtual void loadElements(const void* randBytes, size_t randBytesSize);
	
	virtual bool findElement(elemType elem);

	static void runTest();
	
private:
	Tree* _nwayTree;
};

#endif /* defined(__CollectionTest__NwayTreeCollection__) */
